package com.cm.figure.model.Data;

import java.util.Objects;

/**
 * ClassName:Meta
 * Package:com.cm.figure.model.DataMap
 * Description:
 *
 * @Date:2021/8/14 16:17
 * @com.chuangmei
 */
public class Meta {

    //message
    private String message;
    // status
    private Integer status;

    public Meta() {
    }

    public Meta(String message, Integer status) {
        this.message = message;
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Meta{" +
                "message='" + message + '\'' +
                ", status=" + status +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Meta meta = (Meta) o;
        return Objects.equals(message, meta.message) &&
                Objects.equals(status, meta.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(message, status);
    }
}
